/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.persistence.Page;
import com.hycreate.platform.common.service.CrudService;

/**
 * 添加联系人Service
 * @author 周豫陈
 * @version 2016-12-05
 */
@Service
@Transactional(readOnly = true)
public class HycrmContactService extends CrudService<HycrmContactDao, HycrmContact> {
	@Autowired
	private HycrmContactDao hycrmContactDao;
	public HycrmContact get(String id) {
		return super.get(id);
	}
	
	public List<HycrmContact> findContact(HycrmContact hycrmContact){
		return hycrmContactDao.findContact(hycrmContact);
	}
	public List<HycrmContact> findList(HycrmContact hycrmContact) {
		return super.findList(hycrmContact);
	}
	
	public Page<HycrmContact> findPage(Page<HycrmContact> page, HycrmContact hycrmContact) {
		return super.findPage(page, hycrmContact);
	}
	
	@Transactional(readOnly = false)
	public void save(HycrmContact hycrmContact) {
		super.save(hycrmContact);
	}
	
	@Transactional(readOnly = false)
	public void delete(HycrmContact hycrmContact) {
		super.delete(hycrmContact);
	}

	public List<HycrmContact> findMobile(String mobile) {
		return dao.findMobile(mobile);
	}
	
}